/* 隐藏主界面滚动条 */
.main-ui-bg::-webkit-scrollbar,
.main-ui-full::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.main-ui-bg {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.main-ui-full {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
<template>
  <div class="main-ui-bg no-border-bg">
    <div class="main-ui main-ui-full no-border-bg">
      <div class="main-title-banner">
        <span class="main-title-gradient">AI直播助手</span>
      </div>
      <div class="main-big-img-box">
        <div class="image-container">
          <img src="/png/主图.png" class="main-big-img" alt="AI直播助手主图" />
          <div class="image-glow"></div>
        </div>
      </div>
      <div class="main-menu-btns"></div>
  <!-- 开发者信息已全局显示，主界面不再单独显示 -->
      <div class="main-feature-cards">
        <div class="feature-card" @click="handleMainProcessClick">
          <img src="/png/主程序.png" class="feature-card-img" alt="主程序" />
          <div class="feature-card-title">主程序</div>
        </div>
        <div class="feature-card" @click="$emit('showHome')">
          <img src="/png/功能主页.png" class="feature-card-img" alt="功能主页" />
          <div class="feature-card-title">功能主页</div>
        </div>
        <div class="feature-card" @click="$emit('showConfig')">
          <img src="/png/设置中心.png" class="feature-card-img" alt="设置中心" />
          <div class="feature-card-title">设置中心</div>
        </div>
        <div class="feature-card" @click="$emit('showHelp')">
          <img src="/png/帮助中心.png" class="feature-card-img" alt="帮助中心" />
          <div class="feature-card-title">帮助中心</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
const emit = defineEmits(['showMainProcess', 'showHome', 'showConfig', 'showHelp', 'showRoomManager']);
function handleMainProcessClick() {
  console.log('主程序卡片被点击');
  emit('showMainProcess');
}
</script>
<style scoped>
.global-footer-info {
  position: fixed;
  right: 32px;
  bottom: 18px;
  color: #a080c0;
  font-size: 1.02rem;
  letter-spacing: 1px;
  opacity: 0.85;
  z-index: 9999;
  user-select: none;
  transition: all 0.3s ease;
  pointer-events: none;
}
.global-footer-info:hover {
  opacity: 1;
  color: #8a6db4;
}
  .main-feature-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 48px;
    flex-wrap: wrap;
    z-index: 2;
  }
  .feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff6fa;
    border-radius: 32px;
    box-shadow: 0 6px 24px #ffd6e6;
    padding: 32px 32px 24px 32px;
    min-width: 180px;
    max-width: 220px;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
  }
  .feature-card:hover {
    box-shadow: 0 12px 40px #ffb3d6;
    transform: translateY(-6px) scale(1.04);
  }
  .feature-card-img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    margin-bottom: 18px;
    object-fit: cover;
    box-shadow: 0 4px 16px #ffd6e6;
    background: #fff6fa;
  }
  .feature-card-title {
    font-size: 1.35rem;
    font-weight: bold;
    color: #b48ad6;
    text-align: center;
    margin-top: 2px;
    letter-spacing: 1px;
  }
  .menu-btn-img {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px #ffd6e6;
    background: #fff6fa;
  }
@media (max-width: 900px) {
  .main-ui-full {
    width: 100%;
    min-height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    background: transparent;
    padding-bottom: 0;
  }
  .main-big-img {
    width: 120px;
    height: 120px;
    border-radius: 18px;
  }
  .main-title-gradient {
    font-size: 2.1rem;
  }
  .main-desc-big {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  .main-footer-info {
    right: 10px;
    bottom: 8px;
    font-size: 0.92rem;
  }
}

@media (max-width: 600px) {
  .main-ui-full {
    width: 100%;
    min-height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    background: transparent;
    padding-bottom: 0;
  }
  .main-big-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
  }
  .main-title-gradient {
    font-size: 1.3rem;
  }
  .main-desc-big {
    font-size: 0.92rem;
    margin-bottom: 10px;
  }
  .main-footer-info {
    right: 2px;
    bottom: 2px;
    font-size: 0.82rem;
  }
  .main-menu-btns {
    gap: 8px;
  }
  .main-menu-btn {
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
  }
  .main-menu-btn i {
    margin-right: 4px !important;
  }
}

/* 全局样式 */
html, body {
    min-height: 100vh;
    min-width: 0;
    background: linear-gradient(135deg, #f8e1f4 0%, #e0f7fa 100%);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;

/* 标题样式 */
  .main-title-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    margin: 0 auto;
    min-height: 0;
    z-index: 10;
    pointer-events: none;
    /* 增加标题和主图之间的空隙 */
    padding-bottom: 32px;
  }

  .main-title-gradient {
    font-size: 5.2rem;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #ff90b3 10%, #b48ad6 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 6px 32px rgba(255, 224, 247, 0.9);
    position: relative;
    transition: all 0.3s ease;
    line-height: 1.1;
    text-align: center;
  }

    width: 100%;
    min-height: 100vh;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    background: linear-gradient(120deg, rgba(255, 246, 250, 0.85) 60%, rgba(224, 247, 250, 0.85) 100%);
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    padding: 0;
    transition: all 0.3s ease;
    border: none;
  margin-top: 40px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.image-container {
  position: relative;
}

  .main-big-img {
    width: 600px;
    height: 340px;
    border-radius: 32px;
    box-shadow: 0 16px 48px rgba(255, 209, 230, 0.7);
    background: #fff6fa;
    object-fit: cover;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    z-index: 2;
    max-width: 98vw;
    aspect-ratio: 16/9;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

.main-big-img:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 40px rgba(255, 144, 179, 0.3);
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(135deg, #ff90b3, #b48ad6);
  filter: blur(30px);
  opacity: 0.3;
  z-index: 1;
  animation: pulse 3s infinite ease-in-out;
}

/* 描述文本样式 */
.main-desc-big {
  text-align: center;
  font-size: 1.25rem;
  color: #8a6db4;
  margin-top: 10px;
  margin-bottom: 40px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(243, 234, 255, 0.6);
  max-width: 80%;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* 主容器样式 */
.main-ui-bg {
  min-height: 100vh;
  min-width: 0;
  background: linear-gradient(135deg, #f8e1f4 0%, #e0f7fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.no-border-bg {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}



/* 按钮样式 */
.main-menu-btns {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.main-menu-btn {
  min-width: 140px;
  padding: 12px 24px !important;
  border-radius: 50px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.main-menu-btn i {
  margin-right: 8px;
  font-size: 1.2em;
}

.main-menu-btn[type="primary"] {
  background: linear-gradient(135deg, #ff90b3, #ff70a0) !important;
  color: white !important;
}

.main-menu-btn[type="primary"]:hover {
  background: linear-gradient(135deg, #ff7a9e, #ff5a8c) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 144, 179, 0.3) !important;
}

.main-menu-btn[type="success"] {
  background: linear-gradient(135deg, #8ad6b1, #5ac88e) !important;
  color: white !important;
}

.main-menu-btn[type="success"]:hover {
  background: linear-gradient(135deg, #79d2a0, #4bc07e) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(138, 214, 177, 0.3) !important;
}

.main-menu-btn[type="warning"] {
  background: linear-gradient(135deg, #ffd166, #ffc133) !important;
  color: white !important;
}

.main-menu-btn[type="warning"]:hover {
  background: linear-gradient(135deg, #ffc74d, #ffb71a) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.3) !important;
}

.main-menu-btn:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* 页脚样式 */
.main-footer-info {
  position: absolute;
  right: 32px;
  bottom: 18px;
  color: #a080c0;
  font-size: 1.02rem;
  letter-spacing: 1px;
  opacity: 0.85;
  z-index: 1;
  user-select: none;
  transition: all 0.3s ease;
}

.main-footer-info:hover {
  opacity: 1;
  color: #8a6db4;
}

/* 动画效果 */
@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.4;
  }
}

/* 图标字体定义 (模拟Font Awesome) */
@font-face {
  font-family: 'iconfont';
  src: url('//at.alicdn.com/t/font_1612606_6s7y70t2jgk.eot');
  src: url('//at.alicdn.com/t/font_1612606_6s7y70t2jgk.eot?#iefix') format('embedded-opentype'),
  url('//at.alicdn.com/t/font_1612606_6s7y70t2jgk.woff2') format('woff2'),
  url('//at.alicdn.com/t/font_1612606_6s7y70t2jgk.woff') format('woff'),
  url('//at.alicdn.com/t/font_1612606_6s7y70t2jgk.ttf') format('truetype'),
  url('//at.alicdn.com/t/font_1612606_6s7y70t2jgk.svg#iconfont') format('svg');
}

.icon-home, .icon-settings, .icon-help {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-home::before { content: "\e600"; }
.icon-settings::before { content: "\e601"; }
.icon-help::before { content: "\e602"; }
</style>
